package org.kernely.security.ui.user.mgmt;

import org.kernely.security.persistence.User;
import org.kernely.ui.mvp.KernelyEvent;
import org.kernely.ui.mvp.KernelyEventSender;

public class ManagementUserEvent extends KernelyEvent {
	
	/**
	 * The Serial Version
	 */
	private static final long serialVersionUID = -2972612905733050603L;
	private User user;
	
	/**
	 * ManagementUserEvent's constructor
	 * @param source : the KernelyEventSender who fires this event
	 */
	public ManagementUserEvent(KernelyEventSender source){
		super(source);
	}
	
	/**
	 * ManagementUserEvent's constructor with User.
	 * @param source : the KernelyEventSender who fires this event
	 */
	public ManagementUserEvent(KernelyEventSender source, User user){
		super(source);
		this.user = user;
	}

	/**
	 * Gets the user wich have been updated or created.
	 * @return the user contained in the event.
	 */
	public final User getUser() {
		return user;
	}
	
	
}
